package com.crocodileQ.common;

import com.crocodileQ.enums.AppExceptionMsgEnum;
import lombok.Data;

@Data
public class AppException extends RuntimeException{
    private int status;

    private String msg;

    public AppException(AppExceptionMsgEnum appExceptionMsgEnum) {
        this.status = appExceptionMsgEnum.getStatus();
        this.msg = appExceptionMsgEnum.getMsg();
    }
}
